package rlpw.swing;

import java.util.List;

public interface SelectModel<E> extends Mode {

    public boolean isSelected(int index);

    public boolean isSelected(E element);

    public void setSelected(int index, boolean select);

    public void setSelected(E element, boolean select);

    public void setAllSelected(boolean select);

    public List<E> getSelected();

    public int countSelected();
}
